package edu.hawaii.senin.iclouds.basics;

/**
 * Represents Double accumulator.
 * 
 * @author Pavel Senin.
 * 
 */
public class DoubleAccumulator implements Accumulator<Double> {

  private String name;

  private Double value;

  /** {@inheritDoc} */
  public String getName() {
    return this.name;
  }

  /** {@inheritDoc} */
  public Double getValue() {
    return this.value;
  }

  /** {@inheritDoc} */
  public void increment(Double incValue) {
    this.value += incValue;
  }

  /** {@inheritDoc} */
  public void setName(String name) {
    this.name = name;
  }

  /** {@inheritDoc} */
  public void setValue(Double value) {
    this.value = value;
  }

}
